import re
if __name__ == '__main__':
    text = 'abbaaabbbbaaaaa'
    pattern = 'ab'

    results = re.findall(pattern, text)
    print(type(results))

    for match in results:
        print('Found {!r}'.format(match))
